#ifndef BACKGROUND_H_
#define BACKGROUND_H_
#include <MAUtil/Moblet.h>
#include <mastdlib.h>
#include <NativeUI/Widgets.h>
#include <ma.h>
#include <mavsprintf.h>
#include <NativeUI/WidgetUtil.h>
#include <MAUtil/Graphics.h>
#include "MAHeaders.h"

using namespace MAUtil;
using namespace NativeUI;


class Background
{
	private:
		int w, h;

		MARect  bg_srcRect;
	    MAPoint2d bg_dstPt;
	public:
	    Background(int width, int height){
	    	w = width;
	    	h = height;

	    }
	    void draw(){
	    	bg_srcRect.left = 0;
	    	bg_srcRect.top = 0;
	    	bg_srcRect.width = w;
	    	bg_srcRect.height = h;
	    	bg_dstPt.x = 0;
	    	bg_dstPt.y = 0;
	    	Gfx_drawImageRegion(BACKGROUND1, &bg_srcRect, &bg_dstPt, TRANS_NONE);

	    	maUpdateScreen();
	    }

};
#endif
